package cn.sunxyz.methodinference;

import cn.sunxyz.methodinference.parser.SQLParser;
import cn.sunxyz.methodinference.parser.SQLParserManager;

/**
 * Created by yangrd on 2017/5/31.
 */
public class DefaultSQLFactory implements SQLFactory {

    @Override
    public String parser(String input, SQLParser sqlParser) {
        return sqlParser.parser(input);
    }

    @Override
    public String parser(String input, SQLParserManager sqlParserManager) {
        return this.parser(input, sqlParserManager.getSqlParser());
    }
}
